import QtQuick.Controls 2.3
import QtQuick 2.0

CheckBox {
    id:root

    property string  name

    tristate:false
    display:AbstractButton.TextBesideIcon
    contentItem: Label{
        text: name
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
        font.pixelSize: 22
        color: "white"
        leftPadding: root.indicator.width + root.spacing
    }
    indicator:Rectangle{
        border.color: "green"
        height: parent.height / 2
        width:height
        color: root.checked?"red":"transparent"
        anchors.verticalCenter: parent.verticalCenter
    }
}
